package com.crazymaker.springcloud.reactive.rpc;

import com.crazymaker.springcloud.reactive.api.MockDemoClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;

import java.math.BigInteger;

@Slf4j
public class RpcTest {
    public static void main(String[] args) {
        MockDemoClient demoClient = MockInvocationHandler.newInstance(MockDemoClient.class);
        ResponseEntity<Object> entity = demoClient.getUser(BigInteger.valueOf(2));
        log.info(entity.getBody().toString());
    }
}
